
// SETUP ---------------------------------------------------------- //

set more off
set varabbrev off
clear all
macro drop _all
version 16

// DIRECTORIES ---------------------------------------------------------------
global main "C:/Users/parke/Dropbox/PROJECTS_CURRENT/ProsperaDigitalEvaluacion/Submission/FinalSubmission/ReplicationFiles"

// Subdirectories//
local subdirectories ///
    data             ///
    logs             ///
    tempdata         ///
    results          ///
    programs
foreach folder of local subdirectories {
    cap mkdir "$main/`folder'" // Create folder if it doesn't exist already//
    global `folder' "$main/`folder'"
}

cap mkdir "$results/tables"
cap mkdir "$data/01_dataprep"
cap mkdir "$programs"
cap mkdir "$logs"

log using "$logs/log_file", replace

//set up files and descriptive analysis//
do "$programs/01_dataprep.do"

//programs generating main regression results//

// Tables 2 to 7, Appendix Tables A.1 and A.2//
do "$programs/02_dataanalysis.do"

log close